#define SETFIELD_INT(L, NAME)\
	(lua_pushinteger(L, NAME),\
	lua_setfield(L, -2, #NAME))

/*
#define SETFIELD_RGBI(L, NAME) (\
	SETFIELD_INT(L, NAME##_RED), SETFIELD_INT(L, NAME##_GREEN), SETFIELD_INT(L, NAME##_BLUE), SETFIELD_INT(L, NAME##_INTENSITY))
*/
	
#define SETFIELD_INTX(L, NAME, VALUE)\
	(lua_pushinteger(L, VALUE),\
	lua_setfield(L, -2, #NAME))
	
#define SET_GLOBAL_ALIAS(L, NAME, ALIAS)\
	(lua_getglobal(L, NAME),\
	lua_setglobal(L, ALIAS))
	
#define SET_ALIAS(L, NAME, ALIAS)\
	(lua_getfield(L, -1, NAME),\
	lua_setfield(L, -2, ALIAS))

#define SET_CFUNCTION(L, NAME, func)\
	(lua_pushcfunction(L, func),\
	lua_setfield(L, -2, NAME))
